package cn.tedu.bonfire.front.content.service.impl;

import cn.tedu.bonfire.front.content.dao.persist.mapper.ContentMapper;
import cn.tedu.bonfire.front.content.pojo.vo.ContentSimpleVO;
import cn.tedu.bonfire.front.content.service.IContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ContentServiceImpl implements IContentService {
    @Autowired
    ContentMapper mapper;


    @Override
    public List<ContentSimpleVO> listByUserId(Long id) {
        return mapper.selectByUserId(id);
    }

    @Override
    public List<ContentSimpleVO> listForHot() {
        return mapper.selectForHot();
    }

}
